<div class="pages index">
    <?php echo $this->element('searchForm/set_pagination_named');?>
    <?php echo $this->element('searchForm/form') ?>
    <h2><?php __('User');?></h2>

    <table cellpadding="0" cellspacing="0">
        <tr>
        <th><?php echo $this->Paginator->sort('id');?></th>
<!--        <th><?php echo $this->Paginator->sort('parent_id');?></th>-->
        <th><?php echo $this->Paginator->sort('username');?></th>
<!--        <th><?php echo $this->Paginator->sort('active');?></th>-->

        <th class="actions"><?php __('Actions');?></th>
        </tr>
        <?php
        $i = 0;
        foreach ($pages as $page):
        $class = null;
        if ($i++ % 2 == 0) {
        $class = ' class="altrow"';
        }
        ?>
        <tr<?php echo $class;?>>
        <td><?php echo $page['User']['id']; ?>&nbsp;</td>
<!--        <td>
        <?php echo  $page['ParentPage']['name'];//$this->Html->link($page['ParentPage']['name'], array('controller' => 'users', 'action' => 'view', $page['ParentPage']['id'])); 
        ?>
        </td>-->
        <td><?php echo $page['User']['username']; ?>&nbsp;</td>
<!--        <td><?php echo $page['User']['active']; ?>&nbsp;</td>-->

        <td class="actions">

        <?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $page['User']['id'])); ?>
       
        </td>
        </tr>
        <?php endforeach; ?>
    </table>
    <p>
    <?php 
    echo $this->Paginator->counter( array());
    //'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
    //));
    ?> </p>

    <div class="paging">
    <?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
    | <?php echo $this->Paginator->numbers();?>
    |
    <?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
    </div>
</div>